// pages/nav-order/index.js
const app = getApp()

Component({

  properties: {
    text: {
      type: String,
      value: '<'
    },
    back: {
      type: Boolean,
      value: false
    },
    home: {
      type: Boolean,
      value: false
    }
  },
  data: {
    showOrder:'person',
    statusBarHeight: app.globalData.statusBarHeight + 'px',
    navigationBarHeight: (app.globalData.statusBarHeight + 44) + 'px'
  },
  methods: {
    tabChange(e){
      this.setData({showOrder:e.currentTarget.id})
      this.triggerEvent('onMyEvent',{
        showOrder:e.currentTarget.id
      })
    },
    navigateBack(){
      wx.navigateBack({
        delta: 0,
      })
    }
  },
})
